import { useLoaderData } from "react-router-dom";

const Layout = () => {
    const list = useLoaderData();
    return (
        <ul className='list-group'>
            {list &&
                list.map((item) => (
                    <li key={item} className='list-group-item'>
                        {item}
                    </li>
                ))}
        </ul>
    );
};

export default Layout;
